package com.hk.service.order;

import java.util.List;

import com.hk.commons.HqlFilter;
import com.hk.commons.entity.order.Reservation;

public interface IReservation {
	public Reservation findById(long id);

	/**
	 * 保存
	 * 
	 * @param b
	 * @return
	 */
	public Long add(Reservation u);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	public void delete(Reservation u);

	/**
	 * 更新
	 * 
	 * @param b
	 */
	public void update(Reservation u);
	
	/**
	 * 更新订单状态
	 * @param u
	 * @param Status 1:未付款， 2已付款， 3，部分付款
	 */

	public List<Reservation> findByFilter(HqlFilter hqlFilter, int pageNum,
			int pageSize);

	public List<Reservation> findByFilter(HqlFilter hqlFilter);

	public Long countByFilter(HqlFilter hqlFilter);
}
